package com.jims.master.modules.api.emr.web;

import com.baomidou.kisso.my.controller.BaseController;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.sys.service.OrgDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;


/**
 * 电子病历与HIS
 * @author zhangyao
 * @version 2017-7-25
 */
@RestController
@RequestMapping(value = "emr/hisOffice")
public class EmrOrgDeptController extends BaseController {

    @Autowired
    private OrgDeptService orgDeptService;

    /**
     * 获取His中的科室
     * @return
     * @author zhangyao
     * @version 2017-7-25
     */
    @RequestMapping(value = "list")
   public List<BaseDto> list(@RequestBody Map<String, Object> map) {
        BaseDto dto=new BaseDto();
        dto.putAll(map);
        List<BaseDto> dtoList=orgDeptService.getDeptList(dto);
        return dtoList;
    }
}
